import pickle

d = {"name": "jack", "age": 18}
print(d)
path = "E:/t.txt"
with open(path, "wb") as f:
    pickle.dump(d, f)

with open(path, "rb") as f:
    d2 = pickle.load(f)
    print(d2)
